package mest.service.cxj.impl;


import mest.VO.cxj.RemarkVO;
import mest.dao.cxj.RemarkDao;
import mest.entity.remark;
import mest.service.cxj.RemarkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RemarkServiceImpl implements RemarkService {

    @Resource
    private RemarkDao remarkDao;

    @Override
    public Integer insertRemark(remark remark,String theirDb) {
        int i = 0;
        try {
            i = remarkDao.insertRemark(remark,theirDb);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return i;
    }

    @Override
    public List<RemarkVO> selectAllRemark(Integer poId,String theirDb) {
        return remarkDao.selectAllRemark(poId,theirDb);
    }

    @Override
    public Integer selectCountRemark(Integer poId,String theirDb) {
        return remarkDao.selectCountRemark(poId,theirDb);
    }
}
